-- GENERATED SPELL FOR [Ymirjar Flesh Hunter] --


function spell0_26670(pUnit, Event) --@Aimed Shot,n/a--
pUnit:FullCastSpellOnTarget(48871,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26670', 9000, 1)
end

function spell1_26670(pUnit, Event) --@Aimed Shot,n/a--
pUnit:FullCastSpellOnTarget(59243,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26670', 9000, 1)
end

function spell2_26670(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(48872,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26670', 639, 1)
end

function spell3_26670(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(59244,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26670', 616, 1)
end

function spell4_26670(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(48854,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26670', 653, 1)
end

function spell5_26670(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(59241,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26670', 634, 1)
end

function Sorts_26670(pUnit, Event)
local choix_sorts_26670 = math.random(0, 5)
if choix_sorts_26670 == 0 then
pUnit:RegisterEvent('spell0_26670', 1, 1)
end
if choix_sorts_26670 == 1 then
pUnit:RegisterEvent('spell1_26670', 1, 1)
end
if choix_sorts_26670 == 2 then
pUnit:RegisterEvent('spell2_26670', 1, 1)
end
if choix_sorts_26670 == 3 then
pUnit:RegisterEvent('spell3_26670', 1, 1)
end
if choix_sorts_26670 == 4 then
pUnit:RegisterEvent('spell4_26670', 1, 1)
end
if choix_sorts_26670 == 5 then
pUnit:RegisterEvent('spell5_26670', 1, 1)
end
end

function mob26670_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26670', math.random(1500, 3000), 1)
end

function mob26670_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26670_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26670_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26670, 1, 'mob26670_Action')
RegisterUnitEvent(26670, 2, 'mob26670_Leave')
RegisterUnitEvent(26670, 3, 'mob26670_Kill')
RegisterUnitEvent(26670, 4, 'mob26670_Die')
